﻿using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SendMailServer
{
    internal interface IConnection
    {
        string LastPostUrl { get; }
        ResMsg Load(string key);
        ResMsg Reload(string key);

        ResMsg CreateNewTopic(JToken oldAttr, string userName, string key);

        void ChatAsync(string msg, string userName, string key, EventHandler handler);
    }
}
